<?php
/**
 * mt-monstra
 * Base theme configurations
 * 
 * @package monstra
 * @subpackage mt-monstra
 * @category template
 * 
 * @author nuarharuha <nuarharuha+mostra@gmail.com>
 * @since 0.1
 */	
 
  /**
   * Theme name
   * 
   * @since 0.1
   */
  define('MT_THEME','mt-monstra');
  
  
  /**
   * Template path
   * 
   * @since 0.1
   */
  define('MT_THEME_PATH',THEMES.DS.MT_THEME);
  
  
  /**
   * Lib path
   * 
   * @since 0.1
   */
  define('MT_LIB_DIR',MT_THEME_PATH.DS.'lib'.DS);
  

  /**
   * css path
   * 
   * @since 0.1
   */
  define('MT_CSS_DIR',MT_THEME_PATH.DS.'css'.DS);
  

  /**
   * javascripts path
   * 
   * @since 0.1
   */
  define('MT_JS_DIR',MT_THEME_PATH.DS.'js'.DS);
  
  
  /**
   * Site URL
   * 
   * @since 0.1
   */
  define('MT_BASE_URL', Option::get('siteurl'));
  
  /**
   * theme's stylesheet relative path
   * 
   * @since 0.1
   */
 
  define('MT_CSS_PATH',implode(DS, array('public','themes',MT_THEME,'css')).DS);
  
  /**
   * theme's js relative path
   * 
   * @since 0.1
   */
 
  define('MT_JS_PATH',implode(DS, array('public','themes',MT_THEME,'js')).DS);
  
  /**
   * css url
   * 
   * @since 0.1
   */
  define('MT_CSS_URL', MT_BASE_URL.'/public/themes/'.MT_THEME.'/css/'); 
  
  /**
   * css url
   * 
   * @since 0.1
   */
  define('MT_IMG_URL', MT_BASE_URL.'/public/themes/'.MT_THEME.'/img/');
    
  
  /**
   * Site Name
   * 
   * @since 0.1
   */
  define('MT_SITE_NAME', Site::name());
  
  /**
   * current location
   * 
   * @var string
   * @since 0.1
   */  
  define('MT_CURRENT_PAGE',Pages::$requested_page);

  /**
   * Enable twitter widget
   * 
   * @var bool
   * @link http://twitter.com/
   * @since 0.1
   */
  define('MT_TWITTER_ENABLE', 1); 
  

  /**
   * Your Twitter username/id
   * 
   * @var string
   * @since 0.1
   */
  define('MT_TWITTER_USERNAME', 'nhnoah'); 
  
  
  /**
   * Total post show on twitter update list
   * default set to 5
   * 
   * @var int
   * @since 0.1
   */
  define('MT_TWITTER_MAX_COUNT', 5); 
    
  /**
   * load all require files
   */
  foreach(array('enum','functions','actions','filters') as $file) 
    require_once(MT_LIB_DIR.$file.'.php');
  
  
  //@note css quee sorting are in DESC order
  mt_foreach_do(array('theme','font-museo-700','style'),'mt_q_css');
  
  /**
   * Run all theme filter & action hooks
   */
   
   
   Action::add(MtEnum::ACT_CONTENT_HEADER,'mt_content_header');
   
  
  /**
   * sidebar
   */
   
   if (MT_TWITTER_ENABLE){
    Action::add(MtEnum::ACT_SIDEBAR_WIDGET,'mt_widget_twitter');
   }
   
  
  /**
   * footer
   */
  Action::add('theme_footer','mt_footer_copyright',10);
  
  //Action::add('theme_footer','dumpthis',11);
  
  Filter::add(MtEnum::FLT_BODY_CLASS,'mt_filter_append_body_class');
  
  function dumpthis(){
    mt_dump(Pages::$pages['author']);
  }
  
  
  // intentionally left out the closing php tag